package com.legrand.message.entity;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.util.Date;

/**
 * @author xiah
 * @date 2018/5/14 10:50
 */
@Data
@NoArgsConstructor
@Entity
@AllArgsConstructor
@Table(name = "t_message")
@JsonIgnoreProperties(value = {"hibernateLazyInitializer", "handler", "fieldHandler"})
public class Message {
       @Id
       @GeneratedValue(strategy = GenerationType.IDENTITY)
       private Long id;
       private String message;
       @Column(name = "create_time")
       private Date createTime;

}
